package com.finance.cooperate.dao.entity.primary;

import com.finance.cooperate.dao.support.pojo.BaseVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName CallRecord
 * @Description 用户最新通话记录表
 * @Author shen
 * @Date 2023/8/6 16:09
 * @Modify ...
 */
@Entity
@Table(name = "p_current_call_record")
@Data
public class CallRecord extends BaseVO {

    private static final long serialVersionUID = 6234458458045669618L;

    // ID
    @Id
    @Column(name = "id")
    private Long id;

    // 对方名称
    @Column(name = "opposite_name")
    private String oppositeName;

    // 对方手机号码
    @Column(name = "opposite_phone")
    private String oppositePhone;

    // 通话时长
    @Column(name = "duration")
    private Integer duration;

    // 通话类型(1:打入，2：打出，3：未接)
    @Column(name = "call_type")
    private String callType;

    // 用户Id
    @Column(name = "user_id")
    private String userId;

    // 设备Id
    @Column(name = "device_id")
    private String deviceId;

    // 拨打时间
    @Column(name = "call_time")
    private String callTime;

    // 创建时间
    @Column(name = "create_time")
    private Date createTime;


}
